home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / ColorSync 2.5.1 SDK / Sample Code / CSDemo 2.5 / CSDemoSources / winProfile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-09  |  1.6 KB  |  64 lines  |  [TEXT/CWIE]

  1.  
  2. #ifndef _WINDOWPROFILE_
  3. #define _WINDOWPROFILE_
  4.  
  5.  
  6. #ifndef __TYPES__
  7. #include <Types.h>
  8. #endif
  9.  
  10. #ifndef __QUICKDRAW__
  11. #include <QuickDraw.h>
  12. #endif
  13.  
  14. #ifndef __CMAPPLICATION__
  15. #include <CMApplication.h>
  16. #endif
  17.  
  18. #ifndef _WIN_
  19. #include "win.h"
  20. #endif
  21.  
  22.  
  23. /**\
  24. |**| ==============================================================================
  25. |**| PUBLIC DEFINES
  26. |**| ==============================================================================
  27. \**/
  28. #define kProfileType            'Prof'            // profile window tag
  29. #define kFileSubType            'file'
  30. #define kEmbededSubType            'embd'
  31. #define kSysProfSubType            'sysp'
  32.  
  33.  
  34. /**\
  35. |**| ==============================================================================
  36. |**| PUBLIC TYPEDEFS
  37. |**| ==============================================================================
  38. \**/
  39. typedef struct ProfileData
  40. {
  41.     CMProfileRef            ProfileRef ;    
  42.     unsigned long            Index ;            // if kEmbededSubType then this tells us which one
  43.     unsigned long            Mode ;
  44.     TEHandle                NameTEH ;
  45.  
  46. } ProfileDataRec, *ProfileDataPtr, **ProfileDataHdl ;
  47.  
  48.  
  49. /**\
  50. |**| ==============================================================================
  51. |**| PUBLIC FUNCTION PROTOTYPES
  52. |**| ==============================================================================
  53. \**/
  54. void        winUpdateProfile        ( winHandle win, EventRecord *e) ;
  55. void        winClickProfile            ( winHandle win, EventRecord *e ) ;
  56. void        winMenuProfile            ( winHandle win, long menuResult, Boolean *didit ) ;
  57. void        winUpdateMenusProfile    ( winHandle win ) ;
  58. OSErr        winAllocProfile            ( winHandle win ) ;
  59. OSErr        winOpenProfile            ( winHandle win ) ;
  60. void        winCloseProfile            ( winHandle win ) ;
  61. void        winDisposeProfile        ( winHandle win ) ;
  62.  
  63.  
  64. #endif